/*
 * Lec07.cpp
 *
 *  Created on: Feb 4, 2013
 *      Author: w1084063
 */

#include <iostream>
#include <vector>
using namespace std;
#include "Xyz.h"

int main(void){
	cout << "Constructors for classes" << endl;
	Xyz x( 3, 5.45 );
	Xyz y( 5, 1.23 );
	x.add( y );

	cout << "x has data member: " << x.getx() << endl;

	vector<int> v1;
	v1.push_back( 2 );
	v1.push_back( 34 );
	v1.push_back( 234 );
	for (unsigned int i=0; i<v1.size(); i++)
		cout << "   " << v1[i];
	cout << endl;

	vector<Xyz> v2;
	v2.push_back( x );
	v2.push_back( y );
	for (unsigned int i=0; i<v2.size(); i++)
		cout << "   " << v2[i].getx();
	cout << endl;

}



